package com.woniuxy.enjoylife.mapper;

import com.woniuxy.enjoylife.entity.RecentAgree;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RecentAgreeMapper {

    //查找单个
    RecentAgree selectSingle(RecentAgree o);
    //查找多个
    List<RecentAgree> select(RecentAgree o);
    //新增
    int insert(RecentAgree o);
    //修改
    int update(RecentAgree o);
    //删除
    int delete(RecentAgree o);
    //查询点赞数量
    int findAggreeNum(int rid);
}
